﻿namespace Model.Infrastructure.Models
{
    using System;
    using System.Data.Services.Common;
    using System.Runtime.Serialization;
    using Model.Infrastructure;


    [DataContract]
    [DataServiceEntity]
    public class RegularProduct : IValidatable
    {
        #region Properties
        [DataMember]
        public string Articule
        {
            get { return mArticule; }
            set { mArticule = value; }
        }

        [DataMember]
        public string GlayType
        {
            get { return mGlayType; }
            set {mGlayType = value; }
        }

        [DataMember]
        public double Size
        {
            get { return mSize; }
            set { mSize = value; }
        }

        [DataMember]
        public double Price
        {
            get { return mPrice; }
            set { mPrice = value; }
        }

        [DataMember]
        public string PrintedImageLink
        {
            get { return mPrintedImageLink; }
            set { mPrintedImageLink = value; }
        }

        [DataMember]
        public DateTime ProducingTime
        {
            get { return mProducingTime; }
            set { mProducingTime = value; }
        }
        #endregion

        #region IValidate implementation
        public bool Validate()
        {
            return true;
//            throw new NotImplementedException();
        }
        #endregion

        #region private Fields
        private string mPrintedImageLink;
        private DateTime mProducingTime;
        private double mPrice;
        private double mSize;
        private string mGlayType;
        private string mArticule;
        #endregion
    }
}
